 #define  _CRT_SECURE_NO_WARNINGS 1
#include"Slist.h"
int main()
{
	SLTNODE* plist = NULL;
	//pushhead(&plist, 5);
	//pushhead(&plist, 4);
	//pushhead(&plist, 3);
	//pushhead(&plist, 2);
	//pushhead(&plist, 1);
	//print(plist);
	////pophead(&plist);
	////pophead(&plist);
	////pophead(&plist);	
	////pophead(&plist);
	////print(plist);
	//popend(&plist);
	//popend(&plist);
	//popend(&plist);
	//popend(&plist);
	//popend(&plist);

	//print(plist);
	pushend(&plist, 1);
	pushend(&plist, 2);
	pushend(&plist, 3);
	pushend(&plist, 4);
	pushend(&plist, 5);
	pushend(&plist, 6);
	pushend(&plist, 7);
	pushhead(&plist, 99);
	print(plist);
	SLTNODE* tem = find(plist, 5);
	insert(&plist, tem, 66); 
	print(plist);
	addlist(&plist, tem, 21);
	print(plist);
	delete(&plist, tem);
	print(plist);
	return;
}